package com.chenxbook.modules.examples.java;

public class JohnDoe {
    //此类具有1个成员域state,其在流程定义中被注入值fine
    String state;
    //hello方法在流程定义中被调用
    public String hello(String msg) {
        //流程定义中为此方法注入了参数"Hi,how are you?"，对应到msg
        if (msg.contains("how are you?")) {
            //根据流程定义，返回的字符串应为"I'm fine,thank you."
            return "I'm " + state + ",thank you.";
        }
        return null;
    }
}
